<?php
include('include/config.inc.php');
$selectParty = "SELECT partyId,companyName
                  FROM party";
$selectPartyQuery = mysql_query($selectParty);
$partyDetailArray = array();
while($selectPartyRes = mysql_fetch_array($selectPartyQuery)) 
{
	$partyDetailArray[] = $selectPartyRes['companyName'];
}
echo json_encode($partyDetailArray);
?>